home *** CD-ROM | disk | FTP | other *** search
- RAND (Random)
- Generates a random number. If no argument is supplied, the return value is between 0 and 1.
-
- Format: RAND ({number})
-
- Argument:
- ΓÇó number: Optional. If supplied, the return value is an integer between 1 and number.
-
- Example:
- RAND ( ) * 5 returns 0.67, 4.57, 2.1, and so on.
- Shows that when no argument is provided, RAND returns a number between 0 and 1 and multiplies it by 5 to return real (fractional) numbers.